package com.yike.user.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 软件版本
 *
 * @author yike
 * @since 2024-07-25
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "版本控制查询参数")
public class VersionControlParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("类型：1.收银机端 2.代理商端（安卓）")
    private Integer softType = 1;

    @ApiModelProperty("版本号")
    private String csVersion;

    public void setSoftType(Integer softType) {
        if (softType == null) {
            this.softType = 1;
        } else {
            this.softType = softType;
        }
    }

}
